/**
 *  综合监测一张图 api
 *  @module api/integrated
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 安全监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const safetyCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/safetyCount'
})

/**
 * 水文监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hydrologyCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/hydrologyCount'
})

/**
 * 束管监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const tubeCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/tubeCount'
})

/**
 * 微震监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const vibrationCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/vibrationCount'
})

/**
 * 区域防灭火监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const fireExtinctionCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/fireExtinctionCount'
})

/**
 * 顶板与冲击地压监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const impactCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/safetyMonitoring/integratedMonitoring/impactCount'
})